<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>档案移交</title>
    <meta content="webkit" name="renderer"/>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
    <meta
            content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
            name="viewport"
    />
    <link rel="stylesheet" href="../js/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../style/admin.css" media="all"/>
    <link rel="stylesheet" href="../style/home.css" media="all"/>
    <script src="../js/layui/layui.js"></script>
    <style type="text/css">
        .layui-input {
            height: 28px;
            font-size: 14px
        }

        .layui-form-select dl {
            font-size: 14px
        }

        .layui-layout-right {
            margin: 5px 10px 0 0;
        }

        .layui-input-block {
            margin-left: 100px;
        }
    </style>
</head>
<body>
<div class="layui-card" style="height: 100%">
    <div class="layui-card-header font20">
        <div class="layui-title">档案移交</div>
        <div class="layui-layout-right" style="font-size: 12px; ">
            <div style="float: left; margin-right: 10px">
                <button class="layui-btn layui-btn-normal layui-btn-sm" lay-on="newReceive" type="button">
                    <i class="layui-icon layui-icon-file"></i>新增接收
                </button>
            </div>
            <div style="float: left;  width: 300px">
                <form class="layui-form" lay-filter="projectData" action="" id="projectData">
                    <select name="projectList" id="projectList" lay-filter="projectList" lay-verify="required"
                            style="color: #0C0C0C">
                        <option
                                th:each="project : ${projectsList}"
                                th:value="${project.id}" th:text="${project.name}">
                        </option>
                    </select>
                </form>
            </div>
        </div>
    </div>
    <div class="layui-card-body">
        <div class="layui-row layui-col-space12">
            <div class="layui-col-xs1">
                <div class="layui-card">
                    <div class="layui-card-body" style="padding: 0; margin: 0">
                        <table id="taskTable" lay-filter="taskTable" class="layui-hide-headers  list-table"></table>
                    </div>
                </div>
            </div>
            <div class="layui-col-xs11">
                <blockquote class="layui-elem-quote">
                    <form class="layui-form  layui-row " action="" lay-filter="postData" id="searchData">
                        <div class="layui-col-md2">
                            <label class="layui-form-label" style="width: 60px">批次号</label>
                            <div class="layui-input-block">
                                <input type="text" name="batchcode" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-col-md2">
                            <label class="layui-form-label" style="width: 60px">状态</label>
                            <div class="layui-input-block" style="width: 100px">
                                <select name="status">
                                    <option value=""></option>
                                    <option value="0">未归还</option>
                                    <option value="1">已归还</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-md1">
                            <div class="layui-input-block" style=" margin-left: 0;">
                                <button lay-submit lay-filter="searchData"
                                        class="layui-btn  layui-bg-cyan layui-btn-sm">
                                    <i class="layui-icon layui-icon-search"></i>查询
                                </button>
                            </div>
                        </div>
                    </form>
                </blockquote>
                <table id="dataTable" lay-filter="dataTable"></table>
            </div>
        </div>
    </div>
</div>
<script id="operationBar" type="text/html">
    <a lay-filter="edit" href="#" lay-event="edit"><i class="layui-icon layui-icon-edit p3" title="编辑"></i></a>
    <a lay-filter="del" href="#" lay-event="del"><i class="layui-icon layui-icon-delete p3" title="删除"></i></a>
    <a lay-filter="detail" href="#" lay-event="detail">
        <i class="layui-icon layui-icon-tabs p3" title="接收明细" style="font-size: 14px; padding-right: 2px"></i>
    </a>
    <a lay-filter="return" href="#" lay-event="return">
        <i class="layui-icon layui-icon-refresh p3" title="归还" style="font-size: 14px;"></i>
    </a>
</script>
<script type="text/html" id="statusTpl">
    {{# if (d.status=='0') { }}
    未归还
    {{# } else if (d.status=='1') { }}
    已归还
    {{# } }}
</script>


<script type="text/html" id="startTpl">
    {{# if (d.isstart=='1') { }}
    <i class="layui-icon layui-icon-ok"></i>
    {{# } }}
</script>
<script type="text/javascript" src="../js/lib/common.js"></script>
<script type="text/javascript" src="../js/lib/watermark.js"></script>
<script>
    loadScript("../js/modules/workflow/archivesReceive.js");
</script>
</body>
</html>
